<html>
 <head>
  <meta charset="utf-8"/>
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
  <title>
   主题：求助:关于在R中批量修改column names的命令!  | 数螺 | NAUT IDEA
  </title>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" rel="stylesheet"/>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
  <style type="text/css">
   #xmain img {
                  max-width: 100%;
                  display: block;
                  margin-top: 10px;
                  margin-bottom: 10px;
                }

                #xmain p {
                    line-height:150%;
                    font-size: 16px;
                    margin-top: 20px;
                }

                #xmain h2 {
                    font-size: 24px;
                }

                #xmain h3 {
                    font-size: 20px;
                }

                #xmain h4 {
                    font-size: 18px;
                }


                .header {
	           background-color: #0099ff;
	           color: #ffffff;
	           margin-bottom: 20px;
	        }

	        .header p {
                  margin: 0px;
                  padding: 10px 0;
                  display: inline-block;  
                  vertical-align: middle;
                  font-size: 16px;
               }

               .header a {
                 color: white;
               }

              .header img {
                 height: 25px;
              }
  </style>
  <script src="http://cdn.bootcss.com/jquery/3.0.0/jquery.min.js">
  </script>
  <script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript">
   MathJax.Hub.Config({elements: ["bbpress-forums"]});
  </script>
  <script src="http://nautstatic-10007657.file.myqcloud.com/static/css/readability.min.js" type="text/javascript">
  </script>
  <script type="text/javascript">
   $(document).ready(function() {
                 var loc = document.location;
                 var uri = {
                  spec: "http://cos.name/cn/topic/9202/",
                  host: "http://cos.name",
                  prePath: "http://cos.name",
                  scheme: "http",
                  pathBase: "http://cos.name/"
                 };
    
                 var documentClone = document.cloneNode(true);
                 var article = new Readability(uri, documentClone).parse();
     
                 document.getElementById("xmain").innerHTML = article.content;
                });
  </script>
  <!-- 1466450548: Accept with keywords: (title(0.0):命令,主题,中,批量,论坛, topn(0.266666666667):RSS订阅,分类,信息,帖子,统计学,作者,会员,数据挖掘,赋值,用户名,主站,新鲜事,数据,版权所有,菜单,种种原因,公式,问题,密码,总计,重新命名,错误,批量,命令,主题,普通,论坛,数据结构,模型,讨论区).-->
 </head>
 <body class="topic bbpress single single-topic postid-9202 single-author sidebar" onload="">
  <div class="header">
   <div class="container">
    <div class="row">
     <div class="col-xs-6 col-sm-6 text-left">
      <a href="/databee">
       <img src="http://nautidea-10007657.cos.myqcloud.com/logo_white.png"/>
      </a>
      <a href="/databee">
       <p>
        数螺
       </p>
      </a>
     </div>
     <div class="hidden-xs col-sm-6 text-right">
      <p>
       致力于数据科学的推广和知识传播
      </p>
     </div>
    </div>
   </div>
  </div>
  <div class="container text-center">
   <h1>
    主题：求助:关于在R中批量修改column names的命令!
   </h1>
  </div>
  <div class="container" id="xmain">
   <div class="hfeed site" id="page">
    <header class="site-header" id="masthead" role="banner">
     <div id="cos-logo">
      <a href="http://cos.name/cn">
       <img src="http://cos.name/cn/wp-content/themes/COS-forest/images/headers/cos-logo.png"/>
      </a>
     </div>
     <div class="navbar" id="navbar">
      <nav class="navigation main-navigation" id="site-navigation" role="navigation">
       <h3 class="menu-toggle">
        菜单
       </h3>
       <div class="menu-%e8%8f%9c%e5%8d%951-container">
        <ul class="nav-menu" id="menu-%e8%8f%9c%e5%8d%951">
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-407772" id="menu-item-407772">
          <a href="http://cos.name/cn/">
           论坛首页
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-407773" id="menu-item-407773">
          <a href="http://cos.name/cn/forums/">
           讨论区
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-407774" id="menu-item-407774">
          <a href="http://cos.name/cn/wp-login.php?action=register">
           注册
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-407819" id="menu-item-407819">
          <a href="http://cos.name/">
           主站
          </a>
         </li>
        </ul>
       </div>
      </nav>
      <!-- #site-navigation -->
     </div>
     <!-- #navbar -->
    </header>
    <!-- #masthead -->
    <div class="site-main" id="main">
     <div class="content-area" id="primary">
      <div class="site-content" id="content" role="main">
       <article class="post-9202 topic type-topic status-publish hentry" id="post-9202">
        <header class="entry-header">
         <h1 class="entry-title">
          求助:关于在R中批量修改column names的命令!
         </h1>
        </header>
        <!-- .entry-header -->
        <div class="entry-content">
         <div id="bbpress-forums">
          <div class="bbp-breadcrumb">
           <p>
            <a class="bbp-breadcrumb-home" href="http://cos.name/cn/">
             COS论坛 | 统计之都
            </a>
            <span class="bbp-breadcrumb-sep">
             ›
            </span>
            <a class="bbp-breadcrumb-root" href="http://cos.name/cn/forums/">
             讨论区
            </a>
            <span class="bbp-breadcrumb-sep">
             ›
            </span>
            <a class="bbp-breadcrumb-forum" href="http://cos.name/cn/forum/stat-world/">
             统计学世界
            </a>
            <span class="bbp-breadcrumb-sep">
             ›
            </span>
            <a class="bbp-breadcrumb-forum" href="http://cos.name/cn/forum/stat-world/dmml/">
             数据挖掘和机器学习
            </a>
            <span class="bbp-breadcrumb-sep">
             ›
            </span>
            <span class="bbp-breadcrumb-current">
             求助:关于在R中批量修改column names的命令!
            </span>
           </p>
          </div>
          <div class="bbp-template-notice info">
           <p class="bbp-topic-description">
            该主题包含 14 条回复，4个帖子，最后由
            <a class="bbp-author-avatar" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
             <img src="http://sdn.geekzu.org/avatar/8d1bd1dbea9ee1d42c090b6c8d507e55?s=14&amp;d=monsterid&amp;r=g"/>
            </a>
            <a class="bbp-author-name" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
             uklynn
            </a>
            在
            <a href="http://cos.name/cn/topic/9202/#post-241200" title="回复：求助:关于在R中批量修改column names的命令!">
             8 年, 5 月 之前
            </a>
            更新。
           </p>
          </div>
          <div class="bbp-pagination">
           <div class="bbp-pagination-count">
            查看 15 个帖子 - 1 到 15（总计 15 个）
           </div>
           <div class="bbp-pagination-links">
           </div>
          </div>
          <ul class="forums bbp-replies" id="topic-9202-replies">
           <li class="bbp-header">
            <div class="bbp-reply-author">
             作者
            </div>
            <!-- .bbp-reply-author -->
            <div class="bbp-reply-content">
             帖子
            </div>
            <!-- .bbp-reply-content -->
           </li>
           <!-- .bbp-header -->
           <li class="bbp-body">
            <div class="bbp-reply-header" id="post-9202">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2007年12月26日 下午7:40
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/9202/#post-9202">
               1 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-9202 -->
            <div class="odd bbp-parent-forum-1006 bbp-parent-topic-9202 bbp-reply-position-1 user-id-41556 topic-author post-9202 topic type-topic status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
               <img src="http://sdn.geekzu.org/avatar/8d1bd1dbea9ee1d42c090b6c8d507e55?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
               uklynn
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               您好，
              </p>
              <p>
               我现在在做一个关于网络信息分类的Project，原数据应该有266个列，但由于种种原因，输入R以后，只有249列。本来column name应该是从"1"一直到"266",但是由于列的MISSING, 列名称变为(以前4列为例): "4","8","13","14"….
              </p>
              <p>
               我打算重新命名这249列为:"v1":"v249"
              </p>
              <p>
               我曾经尝试用:
               <br/>
               &gt; dimnames(mydata) &lt;- list(NULL, paste("V", 1:249))
               <br/>
               但是系统显示:
               <br/>
               "错误于`dimnames&lt;-.data.frame`(`*tmp*`, value = list(NULL, c("V 1",  :
               <br/>
               数据框的'dimnames'给得不对"
              </p>
              <p>
               我这249个变量,其中有些是NA, 最后一栏是charactor,其余都是数字,我估计应该是由于字符或者NA造成的.
              </p>
              <p>
               请问应该怎么解决的?非常感谢!
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-240584">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2007年12月27日 上午6:27
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/9202/#post-240584">
               2 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-240584 -->
            <div class="even bbp-parent-forum-1006 bbp-parent-topic-9202 bbp-reply-position-2 user-id-1 post-240584 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/1/" rel="nofollow" title="查看谢益辉的档案">
               <img src="http://sdn.geekzu.org/avatar/1022d8e6ebc94e8f6bca9a86cebe312a?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/1/" rel="nofollow" title="查看谢益辉的档案">
               谢益辉
              </a>
              <br/>
              <div class="bbp-author-role">
               站长
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               你是怎么知道你的数据是249列的？
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-240621">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2007年12月27日 下午5:14
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/9202/#post-240621">
               3 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-240621 -->
            <div class="odd bbp-parent-forum-1006 bbp-parent-topic-9202 bbp-reply-position-3 user-id-41556 topic-author post-240621 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
               <img src="http://sdn.geekzu.org/avatar/8d1bd1dbea9ee1d42c090b6c8d507e55?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
               uklynn
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               回BZ:
               <br/>
               dim(mydata)
               <br/>
               这个命令可以告诉行列信息啊.
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-240653">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2007年12月28日 上午5:27
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/9202/#post-240653">
               4 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-240653 -->
            <div class="even bbp-parent-forum-1006 bbp-parent-topic-9202 bbp-reply-position-4 user-id-1 post-240653 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/1/" rel="nofollow" title="查看谢益辉的档案">
               <img src="http://sdn.geekzu.org/avatar/1022d8e6ebc94e8f6bca9a86cebe312a?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/1/" rel="nofollow" title="查看谢益辉的档案">
               谢益辉
              </a>
              <br/>
              <div class="bbp-author-role">
               站长
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               列出str(mydata)
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-240706">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2007年12月28日 下午9:19
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/9202/#post-240706">
               5 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-240706 -->
            <div class="odd bbp-parent-forum-1006 bbp-parent-topic-9202 bbp-reply-position-5 user-id-41556 topic-author post-240706 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
               <img src="http://sdn.geekzu.org/avatar/8d1bd1dbea9ee1d42c090b6c8d507e55?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
               uklynn
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               回BZ,以下是我的data.frame:
              </p>
              <p>
               'data.frame':   500 obs. of  249 variables:
               <br/>
               $ 4  : num   80  80 135  80 135 …
               <br/>
               $ 8  : num  49549 49363  2316 50076  1992 …
               <br/>
               $ 13 : num  1e-06 1e-06 0.00018 2.1e-05 0.000173 0.000166 0.000205 2e-06 4.3e-05 0.000283 …
               <br/>
               $ 14 : num  0.000110 0.000151 0.000358 0.000147 0.000315 …
               <br/>
               $ 15 : num  0.000159 0.011266 0.001762 0.000521 0.001715 …
               <br/>
               $ 16 : num  0.1593 7.3347 0.1103 0.0776 0.1607 …
               <br/>
               $ 17 : num  0.000707 0.790807 0.324747 0.048196 0.513764 …
               <br/>
               $ 18 : num    9.216 127.085   0.337   1.135   0.532 …
               <br/>
               $ 19 : num    0.8542 843.2044   0.0260   0.0472   0.0621 …
               <br/>
               $ 21 : num  60 60 60 60 60 60 60 60 60 60 …
               <br/>
               $ 22 : num  60 60 60 60 60 60 60 60 60 60 …
               <br/>
               $ 23 : num  1514  460   62  901   61 …
               <br/>
               $ 24 : num  842 754 202 785 192 …
               <br/>
               $ 25 : num  1514 1514  114 1514  109 …
               <br/>
               $ 26 : num  1514 1514 1434 1514 1434 …
               <br/>
               $ 27 : num  502746 518453 144514 512353 134844 …
               <br/>
               $ 28 : num  40 40 40 40 40 40 40 40 40 40 …
               <br/>
               $ 29 : num  40 40 40 40 40 40 40 40 40 40 …
               <br/>
               $ 30 : num  1500 446 48 887 44 40 48 48 172 40 …
               <br/>
               $ 31 : num  826 738 186 768 175 …
               <br/>
               $ 32 : num  1500 1500 100 1500 95 47 100 100 1500 46 …
               <br/>
               $ 33 : num  1500 1500 1420 1500 1420 415 1420 1420 1500 648 …
               <br/>
               $ 34 : num  506365 521532 145377 516066 135708 …
               <br/>
               $ 35 : num  14 14 14 14 14 14 14 14 14 14 …
               <br/>
               $ 36 : num  14 14 14 14 14 14.5 14 14 14 15 …
               <br/>
               $ 37 : num  14 14 14 14 17 20 14 14 14 20 …
               <br/>
               $ 38 : num  16.3 16.1 16.8 16.5 17.0 …
               <br/>
               $ 39 : num  20 20 20 20 20 20 20 20 20 20 …
               <br/>
               $ 40 : num  20 20 20 20 20 20 20 20 20 20 …
               <br/>
               $ 41 : num  8.56 8.62 9.69 8.76 9.69 …
               <br/>
               $ 43 : num  56 7 7 15 7 5 7 7 12 6 …
               <br/>
               $ 44 : num  88 13 6 22 7 5 6 6 17 5 …
               <br/>
               $ 45 : num  55 6 6 14 6 4 6 6 11 5 …
               <br/>
               $ 46 : num  88 13 6 22 7 5 6 6 17 5 …
               <br/>
               $ 47 : num  47 4 2 12 2 2 2 2 9 2 …
               <br/>
               $ 48 : num  6 2 2 2 3 2 2 2 2 3 …
               <br/>
               $ 49 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 50 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 51 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 52 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 53 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 54 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 55 : num  6828  680 1776  132 1776 …
               <br/>
               $ 56 : num  97591  4512   100 26796   100 …
               <br/>
               $ 57 : num  7 1 3 1 3 1 3 3 1 2 …
               <br/>
               $ 58 : num  80 10 2 19 2 1 2 2 14 0 …
               <br/>
               $ 59 : num  6828  680 1776  132 1776 …
               <br/>
               $ 60 : num  106351  13272    100  26796    100 …
               <br/>
               $ 61 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 62 : num  6 6 0 0 0 0 0 0 0 0 …
               <br/>
               $ 63 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 64 : num  8760 8760 0 0 0 0 0 0 0 0 …
               <br/>
               $ 65 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 66 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 67 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 68 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 69 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 70 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 71 : num  4 1 2 1 2 1 2 2 1 2 …
               <br/>
               $ 72 : num  10 1 2 3 2 1 2 2 3 0 …
               <br/>
               $ 73 : num  1 1 1 1 1 1 1 1 1 1 …
               <br/>
               $ 74 : num  1 1 1 1 1 1 1 1 1 1 …
               <br/>
               $ 75 : num  1 1 1 1 1 1 1 1 1 1 …
               <br/>
               $ 76 : num  1 1 1 1 1 1 1 1 1 1 …
               <br/>
               $ 77 : Factor w/ 2 levels "Y","N": 1 1 NA NA NA NA NA NA NA NA …
               <br/>
               $ 78 : Factor w/ 2 levels "N","Y": 1 1 NA NA NA NA NA NA NA NA …
               <br/>
               $ 79 : Factor w/ 2 levels "N","Y": 2 2 NA NA NA NA NA NA NA NA …
               <br/>
               $ 80 : Factor w/ 2 levels "N","Y": 1 1 NA NA NA NA NA NA NA NA …
               <br/>
               $ 81 : num  0 0 NA NA NA NA NA NA NA NA …
               <br/>
               $ 82 : num  0 0 NA NA NA NA NA NA NA NA …
               <br/>
               $ 83 : Factor w/ 2 levels "N","Y": NA NA 2 2 2 2 2 2 2 2 …
               <br/>
               $ 84 : Factor w/ 2 levels "N","Y": NA NA 2 1 2 1 2 2 1 2 …
               <br/>
               $ 85 : num  NA NA 0 0 0 0 0 0 0 0 …
               <br/>
               $ 86 : num  NA NA 0 0 0 0 0 0 0 0 …
               <br/>
               $ 87 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 88 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 89 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 90 : num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 91 : num  1460 1460 1380 1460 1380 1460 1380 1380 1460 1380 …
               <br/>
               $ 92 : num  1460 1460 1452 1460 1414 …
               <br/>
               $ 93 : num  1460 680 1380 132 1380 375 1380 1380 132 608 …
               <br/>
               $ 94 : num  1460 1460 60 1460 60 154 60 60 1460 0 …
               <br/>
               $ 95 : num  247 680 72 132 72 375 72 72 132 4 …
               <br/>
               $ 96 : num  14 132 40 847 40 154 40 40 757 0 …
               <br/>
               $ 97 : num  975 679 591 131 591 374 591 591 131 305 …
               <br/>
               $ 98 : num  1329 1327   49 1410   49 …
               <br/>
               $ 99 : num  32768 32768 16560 24820 16560 …
               <br/>
               $ 100: num  61440 61440 16560 61440 16560 …
               <br/>
               $ 101: num  32768 32768 16384 24820 16384 …
               <br/>
               $ 102: num  61440 61440 16488 61440 16488 …
               <br/>
               $ 103: num  1 2 0 0 0 0 0 0 0 0 …
               <br/>
               $ 104: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 105: num  32172 26214 16489 24820 16489 …
               <br/>
               $ 106: num  61440 61440 16548 61440 16539 …
               <br/>
               $ 107: num  2093  680   72  132   72 …
               <br/>
               $ 108: num  4380 4380 60 2920 60 154 60 60 2920 0 …
               <br/>
               $ 109: num  2 1 1 1 1 1 1 1 1 1 …
               <br/>
               $ 110: num  3 3 1 2 1 1 1 1 2 0 …
               <br/>
               $ 111: num  6828  680 1776  132 1776 …
               <br/>
               $ 112: num  97591  4512   100 26796   100 …
               <br/>
               $ 113: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 114: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 115: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 116: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 117: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 118: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 119: num  5.968 0.000 0.330 0.000 0.519 …
               <br/>
               $ 120: num   8.526 10.547  0.342  1.761  0.537 …
               <br/>
               $ 121: num    9.216 127.085   0.340   1.267   0.535 …
               <br/>
               $ 122: num    9.335 127.180   0.339   1.365   0.534 …
               <br/>
               $ 123: num   300    5 1342   47  850 …
               <br/>
               $ 124: num  4284   32   76 9594   48 …
               <br/>
               $ 125: num  7 3 4 3 4 3 4 4 3 4 …
               <br/>
               $ 126: num  30 2 4 12 4 3 4 4 9 2 …
               <br/>
               $ 127: num  0.000394 0.000251 0.324648 0.000328 0.513764 …
               <br/>
               $ 128: num  0.118277 0.083659 0.000288 0.129723 0.000314 …
               <br/>
               $ 129: num  0.1191 0.0254 0.3369 0.1017 0.5325 …
               <br/>
               $ 130: num  0.17108 0.09430 0.00162 0.23106 0.00159 …
               <br/>
               $ 131: num  0.02882 0.00868 0.32874 0.03417 0.51978 …
               <br/>
               $ 132: num  0.123396 0.088974 0.000654 0.148240 0.000653 …
               <br/>
               $ 133: num  0.04962 0.01450 0.00571 0.05844 0.00866 …
               <br/>
               $ 134: num  0.012824 0.000000 0.000644 0.038445 0.000627 …
               <br/>
               $ 135: num  0.000498 0.000359 0.325043 0.000541 0.518220 …
               <br/>
               $ 136: num  0.127284 0.083659 0.000327 0.129723 0.000314 …
               <br/>
               $ 137: num  2 1 1 1 1 1 1 1 1 1 …
               <br/>
               $ 138: num  22 1 1 9 1 1 1 1 6 1 …
               <br/>
               $ 139: num  0.000542 0.025425 0.336941 0.101653 0.532459 …
               <br/>
               $ 140: num  0.11938 0.09430 0.00162 0.13049 0.00159 …
               <br/>
               $ 141: num  0.000588 0.025425 0.336941 0.101653 0.532459 …
               <br/>
               $ 142: num  0.17108 0.09430 0.00162 0.23106 0.00159 …
               <br/>
               $ 143: num  0.000565 0.025422 0.336907 0.101643 0.532406 …
               <br/>
               $ 144: num  0.12436 0.09429 0.00162 0.14312 0.00159 …
               <br/>
               $ 145: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 146: num  0.0149 0.0000 0.0000 0.0330 0.0000 …
               <br/>
               $ 147: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 148: num  2 1 0 0 0 0 0 0 0 0 …
               <br/>
               $ 149: num  2 0 1 0 1 0 1 1 0 0 …
               <br/>
               $ 150: num  43 2 0 8 0 0 0 0 6 0 …
               <br/>
               $ 151: num  1 0 1 0 1 0 1 1 0 1 …
               <br/>
               $ 152: num  14 1 0 1 0 0 0 0 1 1 …
               <br/>
               $ 153: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 154: num  1 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 155: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 156: num  2 3 0 0 0 0 0 0 0 0 …
               <br/>
               $ 157: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 158: num  0.133 1.483 0.000 0.000 0.000 …
               <br/>
               $ 159: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 160: num  2.47 5.98 0.00 0.00 0.00 …
               <br/>
               $ 161: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 162: num  1.30 3.48 0.00 0.00 0.00 …
               <br/>
               $ 163: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 164: num  1.35 2.05 0.00 0.00 0.00 …
               <br/>
               $ 166: num  60 60 60 60 60 60 60 60 60 60 …
               <br/>
               $ 167: num  60 60 60 60 60 60 60 60 60 60 …
               <br/>
               $ 168: num  60 60 62 60 62 60 62 62 60 60 …
               <br/>
               $ 169: num  181.2 156.6 311.4  68.5 311.4 …
               <br/>
               $ 170: num  60 61 252 60 252 62 252 252 60 61.5 …
               <br/>
               $ 171: num  1514  734 1434  186 1434 …
               <br/>
               $ 172: num  131466  64833 258474   1056 258474 …
               <br/>
               $ 173: num  40 40 40 40 40 40 40 40 40 40 …
               <br/>
               $ 174: num  40 40 40 40 40 40 40 40 40 40 …
               <br/>
               $ 175: num  40 40 48 40 48 40 48 48 40 42 …
               <br/>
               $ 176: num  162.1 138.3 294.9  49.3 294.9 …
               <br/>
               $ 177: num  40 44 238 40 238 48 238 238 40 47 …
               <br/>
               $ 178: num  1500 720 1420 172 1420 415 1420 1420 172 648 …
               <br/>
               $ 179: num  132740  65807 259993   1156 259993 …
               <br/>
               $ 180: num  14 14 14 14 14 14 14 14 14 14 …
               <br/>
               $ 181: num  20 17 14 20 14 14 14 14 20 14.5 …
               <br/>
               $ 182: num  20 20 14 20 14 20 14 14 20 18 …
               <br/>
               $ 183: num  19.1 18.3 16.6 19.2 16.6 …
               <br/>
               $ 184: num  20 20 20 20 20 20 20 20 20 20 …
               <br/>
               $ 185: num  20 20 20 20 20 20 20 20 20 20 …
               <br/>
               $ 186: num   4.49  8.57 10.29  4.46 10.29 …
               <br/>
               $ 188: num  60 60 60 60 60 60 60 60 60 60 …
               <br/>
               $ 189: num  1514  186   60 1411   60 …
               <br/>
               $ 190: num  1514 1514   61 1514   60 …
               <br/>
               $ 191: num  1263.1 1076.5   75.0 1272.8   72.9 …
               <br/>
               $ 192: num  1514 1514   86 1514   78 …
               <br/>
               $ 193: num  1514 1514  114 1514  114 …
               <br/>
               $ 194: num  282823 467617    545 261658    486 …
               <br/>
               $ 195: num  40 40 40 40 40 40 40 40 40 40 …
               <br/>
               $ 196: num  1500  172   40 1397   40 …
               <br/>
               $ 197: num  1500 1500 44 1500 40 40 44 44 1500 40 …
               <br/>
               $ 198: num  1248.6 1061.5   58.0 1258.2   55.4 …
               <br/>
               $ 199: num  1500 1500 72 1500 64 44 72 72 1500 40 …
               <br/>
               $ 200: num  1500 1500 100 1500 100 194 100 100 1500 48 …
               <br/>
               $ 201: num  283987 469655    664 263278    600 …
               <br/>
               $ 202: num  14 14 14 14 14 14 14 14 14 14 …
               <br/>
               $ 203: num  14 14 14 14 14 16 14 14 14 20 …
               <br/>
               $ 204: num  14 14 17 14 20 20 17 17 14 20 …
               <br/>
               $ 205: num  14.5 14.9 17.0 14.6 17.4 …
               <br/>
               $ 206: num  14 14 20 14 20 20 20 20 14 20 …
               <br/>
               $ 207: num  20 20 20 20 20 20 20 20 20 20 …
               <br/>
               $ 208: num   2.67  5.08 10.80  3.19 10.29 …
               <br/>
               $ 210: num  1e-06 1e-06 0.00018 2.1e-05 0.000173 0.000166 0.000205 2e-06 4.3e-05 0.000283 …
               <br/>
               $ 211: num  0.000110 0.000151 0.000358 0.000147 0.000315 …
               <br/>
               $ 212: num  0.000159 0.011266 0.001762 0.000521 0.001715 …
               <br/>
               $ 213: num  0.1593 7.3347 0.1103 0.0776 0.1607 …
               <br/>
               $ 214: num  0.000707 0.790807 0.324747 0.048196 0.513764 …
               <br/>
               $ 215: num    9.216 127.085   0.337   1.135   0.532 …
               <br/>
               $ 216: num    0.8542 843.2044   0.0260   0.0472   0.0621 …
               <br/>
               $ 218: num  1e-06 1e-06 0.00018 2.1e-05 0.000173 0.000166 0.000205 2e-06 4.3e-05 0.000283 …
               <br/>
               $ 219: num  0.000110 0.000151 0.000358 0.000147 0.000315 …
               <br/>
               $ 220: num  0.000159 0.011266 0.001762 0.000521 0.001715 …
               <br/>
               $ 221: num  0.1593 7.3347 0.1103 0.0776 0.1607 …
               <br/>
               $ 222: num  0.000707 0.790807 0.324747 0.048196 0.513764 …
               <br/>
               $ 223: num    9.216 127.085   0.337   1.135   0.532 …
               <br/>
               $ 224: num    0.8542 843.2044   0.0260   0.0472   0.0621 …
               <br/>
               $ 225: num  34.36  6.34    NA  5.40    NA …
               <br/>
               $ 227: num  3 1 0 1 0 0 0 0 1 0 …
               <br/>
               $ 228: num   3.93 10.55  0.00  1.76  0.00 …
               <br/>
               $ 229: num   22.78 139.36   1.32   2.79   2.09 …
               <br/>
               $ 230: num  17.24  7.57  0.00 63.06  0.00 …
               <br/>
               $ 231: num   19.7 136.0   0.0   0.0   0.0 …
               <br/>
               $ 232: num  86.7 97.6  0.0  0.0  0.0 …
               <br/>
               $ 233: num  267432   9718   5523  81310   3701 …
               <br/>
               $ 234: num  24952   497   469  1787   324 …
               <br/>
               $ 235: num  24952   497   469  1787   324 …
               <br/>
               $ 236: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 237: num  0.142 0.019 0.011 0.034 0.012 …
               <br/>
               $ 238: num  0.007629 0.000954 0.121469 0.060960 0.060960 …
               <br/>
               $ 239: num  0.1402 0.0187 0.0106 0.0318 0.0117 …
               <br/>
               $ 240: num  0.01526 0.00191 0.23946 0.12147 0.12147 …
               <br/>
               $ 241: num  0.1349 0.0180 0.0093 0.0258 0.0109 …
               <br/>
               $ 242: num  0.02288 0.00286 0.35104 0.18110 0.18110 …
               <br/>
               $ 243: num  0.12713 0.01720 0.00744 0.01849 0.00967 …
               <br/>
               $ 244: num  0.03051 0.00381 0.45423 0.23946 0.23946 …
               <br/>
               $ 245: num  0.11754 0.01687 0.00526 0.01454 0.00811 …
               <br/>
               $ 246: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 247: num  0.0559 0.0070 0.0070 0.0130 0.0070 …
               <br/>
               $ 248: num  0.007629 0.000954 0.121469 0.060960 0.060960 …
               <br/>
               $ 249: num  0.05494 0.00673 0.00666 0.01190 0.00678 …
               <br/>
               $ 250: num  0.01526 0.00191 0.23946 0.12147 0.12147 …
               <br/>
               $ 251: num  0.05220 0.00605 0.00570 0.00889 0.00617 …
               <br/>
               $ 252: num  0.02288 0.00286 0.35104 0.18110 0.18110 …
               <br/>
               $ 253: num  0.04843 0.00528 0.00432 0.00488 0.00523 …
               <br/>
               $ 254: num  0.03051 0.00381 0.45423 0.23946 0.23946 …
               <br/>
               $ 255: num  0.04428 0.00494 0.00282 0.00271 0.00409 …
               <br/>
               $ 256: num  0 0 0 0 0 0 0 0 0 0 …
               <br/>
               $ 257: num  0.0878 0.0130 0.0050 0.0220 0.0060 …
               <br/>
               $ 258: num  1.41 1.11 1.48 1.46 1.47 …
               <br/>
               $ 259: num  1.57 1.57 1.57 1.57 1.57 …
               <br/>
               $ 260: num  0.01526 0.00191 0.45423 0.12147 0.23946 …
               <br/>
               $ 261: num  0.08315 0.01199 0.00274 0.01804 0.00439 …
               <br/>
               $ 262: num  0.02288 0.00286 0.63216 0.18110 0.35104 …
               <br/>
               $ 263: num  0.07832 0.01124 0.00109 0.01468 0.00281 …
               <br/>
               $ 264: num  0.03051 0.00381 0.77354 0.23946 0.45423 …
               <br/>
               $ 265: num  0.072748 0.010936 0.000994 0.012823 0.001247 …
               <br/>
               $ 266: Factor w/ 12 levels "ATTACK","DATABASE",..: 1 1 1 1 1 1 1 1 1 1 …
              </p>
              <p>
               其中第65-68,71-72,249列均为Factor.
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-240707">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2007年12月28日 下午9:35
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/9202/#post-240707">
               6 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-240707 -->
            <div class="even bbp-parent-forum-1006 bbp-parent-topic-9202 bbp-reply-position-6 user-id-41556 topic-author post-240707 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
               <img src="http://sdn.geekzu.org/avatar/8d1bd1dbea9ee1d42c090b6c8d507e55?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
               uklynn
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               我试过用as.character去更改列类型,但是失败了…
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-240803">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2007年12月31日 上午1:51
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/9202/#post-240803">
               7 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-240803 -->
            <div class="odd bbp-parent-forum-1006 bbp-parent-topic-9202 bbp-reply-position-7 user-id-41556 topic-author post-240803 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
               <img src="http://sdn.geekzu.org/avatar/8d1bd1dbea9ee1d42c090b6c8d507e55?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
               uklynn
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               谢兄弟，怎么没有下文了…:'(
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-240851">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2008年1月1日 上午5:16
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/9202/#post-240851">
               8 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-240851 -->
            <div class="even bbp-parent-forum-1006 bbp-parent-topic-9202 bbp-reply-position-8 user-id-1 post-240851 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/1/" rel="nofollow" title="查看谢益辉的档案">
               <img src="http://sdn.geekzu.org/avatar/1022d8e6ebc94e8f6bca9a86cebe312a?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/1/" rel="nofollow" title="查看谢益辉的档案">
               谢益辉
              </a>
              <br/>
              <div class="bbp-author-role">
               站长
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               这两天非常忙。
              </p>
              <p>
               给colnames(mydata)或dimnames(mydata)[[2]]赋值就可以了。dimnames()的问题我希望你可以认真看看帮助，这一点我目前还没弄清楚（也没时间）。
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-240874">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2008年1月1日 下午5:59
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/9202/#post-240874">
               9 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-240874 -->
            <div class="odd bbp-parent-forum-1006 bbp-parent-topic-9202 bbp-reply-position-9 user-id-16503 post-240874 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/16503/" rel="nofollow" title="查看neige的档案">
               <img src="http://sdn.geekzu.org/avatar/369544d7a5a370129cbcccb7a0484108?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/16503/" rel="nofollow" title="查看neige的档案">
               neige
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               colnames will do it
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-240880">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2008年1月1日 下午7:49
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/9202/#post-240880">
               10 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-240880 -->
            <div class="even bbp-parent-forum-1006 bbp-parent-topic-9202 bbp-reply-position-10 user-id-41556 topic-author post-240880 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
               <img src="http://sdn.geekzu.org/avatar/8d1bd1dbea9ee1d42c090b6c8d507e55?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
               uklynn
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               谢谢7楼8楼两位兄弟的回复, 命名问题已经解决了!
              </p>
              <p>
               但是还有另外一个问题:
               <br/>
               因为我最终是需要用'tree'或者'rpart'来classify 'mydata', however, neither 'tree' nor 'rpart' work in my case, both of them display:
              </p>
              <p>
               &gt; library(tree)
               <br/>
               &gt; tree('V249'~'V1',mydata)
               <br/>
               错误于terms.formula(formula, data = data) : 模型公式里有错误的项
               <br/>
               &gt; library(rpart)
               <br/>
               &gt; rpart('V249'~'V1',mydata)
               <br/>
               错误于terms.formula(formula, data = data) : 模型公式里有错误的项
              </p>
              <p>
               我觉得可能是因为我上面列出的数据结构中有些列是FACTOR的原因, 请问:是否有方法把他们转换成CHARACTER呢? 还有,如果我这样做了,是否就能使用'tree'和'rpart'命令来分类了?
              </p>
              <p>
               Thank u very much indeed!
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-240950">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2008年1月3日 上午5:14
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/9202/#post-240950">
               11 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-240950 -->
            <div class="odd bbp-parent-forum-1006 bbp-parent-topic-9202 bbp-reply-position-11 user-id-2429 post-240950 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/2429/" rel="nofollow" title="查看guanglunw的档案">
               <img src="http://sdn.geekzu.org/avatar/2345601eb43486bbac658a77014be0e9?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/2429/" rel="nofollow" title="查看guanglunw的档案">
               guanglunw
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               colnames !!!
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-240952">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2008年1月3日 上午5:20
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/9202/#post-240952">
               12 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-240952 -->
            <div class="even bbp-parent-forum-1006 bbp-parent-topic-9202 bbp-reply-position-12 user-id-16503 post-240952 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/16503/" rel="nofollow" title="查看neige的档案">
               <img src="http://sdn.geekzu.org/avatar/369544d7a5a370129cbcccb7a0484108?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/16503/" rel="nofollow" title="查看neige的档案">
               neige
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               why you put quotes around your variable names
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-240954">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2008年1月3日 上午5:26
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/9202/#post-240954">
               13 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-240954 -->
            <div class="odd bbp-parent-forum-1006 bbp-parent-topic-9202 bbp-reply-position-13 user-id-1 post-240954 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/1/" rel="nofollow" title="查看谢益辉的档案">
               <img src="http://sdn.geekzu.org/avatar/1022d8e6ebc94e8f6bca9a86cebe312a?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/1/" rel="nofollow" title="查看谢益辉的档案">
               谢益辉
              </a>
              <br/>
              <div class="bbp-author-role">
               站长
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               答案如11楼所说。建议你先把R-intro看看（formula的写法），这都是非常基础的东西。
              </p>
              <p>
               另外我提的问题你并没有研究，为什么colnames()可以，而dimnames()不可以。
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-240956">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2008年1月3日 上午5:38
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/9202/#post-240956">
               14 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-240956 -->
            <div class="even bbp-parent-forum-1006 bbp-parent-topic-9202 bbp-reply-position-14 user-id-16503 post-240956 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/16503/" rel="nofollow" title="查看neige的档案">
               <img src="http://sdn.geekzu.org/avatar/369544d7a5a370129cbcccb7a0484108?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/16503/" rel="nofollow" title="查看neige的档案">
               neige
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <p>
               This is from the help file
              </p>
              <p>
               &gt;?dimnames
              </p>
              <p>
               Note
               <br/>
               Setting components of the dimnames, e.g. dimnames(A)[[1]] &lt;- value is a common paradigm, but note that it will not work if the value assigned is NULL. Use rownames instead, or (as it does) manipulate the whole dimnames list.
              </p>
              <p>
               I guess simply NULL will not work on dimnames
              </p>
              <p>
               forget about row names, dimnames(mydata)[2] &lt;- list(paste("V", 1:249,sep="")) will work as well
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
            <div class="bbp-reply-header" id="post-241200">
             <div class="bbp-meta">
              <span class="bbp-reply-post-date">
               2008年1月7日 下午7:33
              </span>
              <a class="bbp-reply-permalink" href="http://cos.name/cn/topic/9202/#post-241200">
               15 楼
              </a>
              <span class="bbp-admin-links">
              </span>
             </div>
             <!-- .bbp-meta -->
            </div>
            <!-- #post-241200 -->
            <div class="odd bbp-parent-forum-1006 bbp-parent-topic-9202 bbp-reply-position-15 user-id-41556 topic-author post-241200 reply type-reply status-publish hentry">
             <div class="bbp-reply-author">
              <a class="bbp-author-avatar" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
               <img src="http://sdn.geekzu.org/avatar/8d1bd1dbea9ee1d42c090b6c8d507e55?s=80&amp;d=monsterid&amp;r=g"/>
              </a>
              <br/>
              <a class="bbp-author-name" href="http://cos.name/cn/profile/41556/" rel="nofollow" title="查看uklynn的档案">
               uklynn
              </a>
              <br/>
              <div class="bbp-author-role">
               普通会员
              </div>
             </div>
             <!-- .bbp-reply-author -->
             <div class="bbp-reply-content">
              <blockquote class="d4pbbc-quote">
              </blockquote>
              <p>
               <strong class="d4pbbc-bold">
                引用第13楼
                <em class="d4pbbc-italic">
                 neige
                </em>
                于
                <em class="d4pbbc-italic">
                 2008-01-03 13:38
                </em>
                发表的“”
               </strong>
               :
               <br/>
               dimnames(mydata)[2] &lt;- list(paste("V", 1:249,sep="")) quote]
               <br/>
               thx a lot frd! this is what i've finally used to solve the problem. thx very much indeed anyway!
              </p>
             </div>
             <!-- .bbp-reply-content -->
            </div>
            <!-- .reply -->
           </li>
           <!-- .bbp-body -->
           <li class="bbp-footer">
            <div class="bbp-reply-author">
             作者
            </div>
            <div class="bbp-reply-content">
             帖子
            </div>
            <!-- .bbp-reply-content -->
           </li>
           <!-- .bbp-footer -->
          </ul>
          <!-- #topic-9202-replies -->
          <div class="bbp-pagination">
           <div class="bbp-pagination-count">
            查看 15 个帖子 - 1 到 15（总计 15 个）
           </div>
           <div class="bbp-pagination-links">
           </div>
          </div>
          <div class="bbp-no-reply" id="no-reply-9202">
           <div class="bbp-template-notice">
            <p>
             您必须先登录才能回复该主题。
            </p>
           </div>
          </div>
         </div>
        </div>
        <!-- .entry-content -->
        <footer class="entry-meta">
        </footer>
        <!-- .entry-meta -->
       </article>
       <!-- #post -->
       <div class="comments-area" id="comments">
       </div>
       <!-- #comments -->
      </div>
      <!-- #content -->
     </div>
     <!-- #primary -->
     <div class="sidebar-container" id="tertiary" role="complementary">
      <div class="sidebar-inner">
       <div class="widget-area">
        <aside class="widget bbp_widget_login" id="bbp_login_widget-2">
         <h3 class="widget-title">
          登录
         </h3>
         <form action="http://cos.name/cn/wp-login.php" class="bbp-login-form" method="post">
          <fieldset>
           <legend>
            登录
           </legend>
           <div class="bbp-username">
            <label for="user_login">
             用户名:
            </label>
           </div>
           <div class="bbp-password">
            <label for="user_pass">
             密码:
            </label>
           </div>
           <div class="bbp-remember-me">
            <label for="rememberme">
             记住用户名
            </label>
           </div>
           <div class="bbp-submit-wrapper">
            <button class="button submit user-submit" id="user-submit" name="user-submit" tabindex="104" type="submit">
             登录
            </button>
           </div>
           <div class="bbp-login-links">
            <a class="bbp-register-link" href="http://cos.name/cn/wp-login.php?action=register" title="注册">
             注册
            </a>
            <a class="bbp-lostpass-link" href="http://cos.name/cn/wp-login.php?action=lostpassword" title="忘记密码">
             忘记密码
            </a>
           </div>
          </fieldset>
         </form>
        </aside>
        <aside class="widget widget_text" id="text-7">
         <h3 class="widget-title">
          搜索
         </h3>
         <div class="textwidget">
          <form action="http://www.google.com/search" id="bbp-search-form" method="get" onsubmit="Gsitesearch(this)" role="search">
           <div>
           </div>
          </form>
          <form id="bbp-search-form-baidu" onsubmit="g(this)" role="search">
           <div>
           </div>
          </form>
         </div>
        </aside>
        <aside class="widget widget_text" id="text-2">
         <h3 class="widget-title">
          新鲜事
         </h3>
         <div class="textwidget">
          <ul>
           <li>
            <a href="http://cos.name/cn/topics/">
             最新帖子
            </a>
           </li>
           <li>
            <a href="http://cos.name/cn/view/popular/">
             最热门主题
            </a>
           </li>
           <li>
            <a href="http://cos.name/cn/view/no-replies/">
             消灭零回复
            </a>
           </li>
          </ul>
         </div>
        </aside>
        <aside class="widget widget_text" id="text-3">
         <h3 class="widget-title">
          RSS订阅
         </h3>
         <div class="textwidget">
          <ul>
           <li>
            <img src="http://cos.name/wp-includes/images/rss.png"/>
            <a href="http://cos.name/cn/topics/feed/">
             所有主题
            </a>
           </li>
           <li>
            <img src="http://cos.name/wp-includes/images/rss.png"/>
            <a href="http://cos.name/cn/forums/feed/">
             所有帖子
            </a>
           </li>
          </ul>
         </div>
        </aside>
       </div>
       <!-- .widget-area -->
      </div>
      <!-- .sidebar-inner -->
     </div>
     <!-- #tertiary -->
    </div>
    <!-- #main -->
    <footer class="site-footer" id="colophon" role="contentinfo">
     <div class="site-info">
      版权所有 © 2014 统计之都 | 由
      <a href="http://wordpress.org/">
       WordPress
      </a>
      构建 | 主题修改自
      <a href="http://wordpress.org/themes/twentythirteen">
       Twenty Thirteen
      </a>
     </div>
     <!-- .site-info -->
    </footer>
    <!-- #colophon -->
   </div>
   <!-- #page -->
  </div>
 </body>
</html>